Moving options around

These two commands are also very useful within the code argument of || or ||.


\begin{decl}
\vert\PassOptionsToPackage\vert \arg{options-list} \arg{package-na...
...\
\vert\PassOptionsToClass\vert \arg{options-list} \arg{class-name}
\end{decl}
The command |asses the options in options-list to package package-name. This means that it adds the option-list to the list of options used by any future |or | command for package package-name.

Example:

   \PassOptionsToPackage{foo,bar}{fred}
   \RequirePackage[baz]{fred}
is the same as:
   \RequirePackage[foo,bar,baz]{fred}

Similarly, |ay be used in a class file to pass options to another class to be loaded with ||.